// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import '@/common/hack'
import Vue from 'vue'

import App from './App'
import router from '@/router'
import store from '@/store'
import fastClick from 'fastclick'
import VueAwesomeSwiper from 'vue-awesome-swiper'
// import Vconsole from 'vconsole'
import { Button, NavBar, Tab, Tabs, Toast, Notify } from 'vant'

import axios from 'axios'
import './assets/styles/reset.css'
import './assets/styles/border.css'
import 'swiper/dist/css/swiper.css'
import getApiData from './apis/index'
import utils from '@/common/common'
const wx = require('weixin-js-sdk')
Vue.use(Button).use(NavBar).use(Tab).use(Tabs).use(Toast).use(Notify)

Vue.config.productionTip = false
/** 解决移动端点击延迟 */
fastClick.attach(document.body)
/** vue-awesome-swiper */
Vue.use(VueAwesomeSwiper)
Vue.prototype.$http = axios
Vue.prototype.$api = getApiData
Vue.prototype.$wx = wx

/** common js 单位转换 100000 -> 10万 */
Vue.prototype.utils = utils

// let vConcole = new Vconsole()
// export default vConcole

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
